package mapper;

import entity.Category;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MiddleMapper {
    public List<Category> selectCategoriesByMovieId(Integer id);
    /*Param:将sql语句中的参数与输入参数绑定，用于多个输入变量时*/
    public Integer insertMovieCategories(@Param("id") Integer movieId,
                                         @Param("categoryId") List<Integer> categoryId);
    public Integer deleteCategoriesByMovieList(List<Integer> movieList);
}
